package sctu.edu.java.year2016.team05.zengkun.day20160531.example;

import java.lang.reflect.Constructor;


/**
 * Created by mike on 2016/5/31.
 */
/*public class AccessConstructor {
    public static void main(String[] args) {


        MoreConstructor example = new MoreConstructor();
        Class exampleC = example.getClass();
        Constructor[] declaredConstructors = exampleC.getDeclaredConstructors();
        for (int i = 0; i < declaredConstructors.length; i++) {
            Constructor constructor = declaredConstructors[i];
            System.out.println("查看是否允许带有的可变数量的参数："+constructor.isVarArgs());
            System.out.println("该构造方法的入口参数类型依次为：");
            Class[] parameterTypes=constructor.getParameterTypes();
            for(int j=0;j<parameterTypes.length;j++){
                System.out.println(" "+parameterTypes[j]);
            }
            System.out.println("该构造方法可能抛出的异常类型为：");
            Class[] execeptionTypes=constructor.getExceptionTypes();
            for(int j=0;j<execeptionTypes.length;j++)  {
                System.out.println("" +parameterTypes[j]);
            }
           Class[] execptionTypes=constructor.getExceptionTypes();
            for(int j=0;j<execeptionTypes.length;j++){

                System.out.println("" + execeptionTypes[j]);
            }
            MoreConstructor example2=null;
           while(example2==null){
                try {  if(i==0)
                    example2=(MoreConstructor) constructor.newInstance();

else if()

                }


            }

        }
    }

}
}
        */